﻿@model Model.SysUserInfo
@{
    var genderList = new List<SelectListItem>();
    genderList.Add(new SelectListItem() { Value = "1", Text = "男" });
    genderList.Add(new SelectListItem() { Value = "2", Text = "女" });

    var statusList = new List<SelectListItem>();
    //statusList.Add(new SelectListItem() { Value = "-1", Text = "-请选择-" });
    statusList.Add(new SelectListItem() { Value = "1", Text = "启用" });
    statusList.Add(new SelectListItem() { Value = "2", Text = "禁用" });
}
@Html.HiddenFor(model => model.Guid)
@Html.HiddenFor(model => model.EmployeeCode)
<table class="table_bg" style="width: 100%;" cellpadding="0" cellspacing="0">
    <tr class="trEmployeeCode">
        <td style="text-align: right; width: 150px;">
            工 号：
        </td>
        <td>
            <span>@Model.EmployeeCode</span>
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 150px;">
            <span class="red">*</span>姓 名：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.EmployeeName, new { style = "Width: 200px;", maxlength = "50" })
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            性 别：
        </td>
        <td>
            @Html.DropDownListFor(model => model.Gender, genderList)
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            <span class="red">*</span>用户名：
        </td>
        <td>
            @if (Model.Username == "SuperAdmin"){
                <span>@Model.Username</span>
                <input id="Username" name="Username" type="hidden" value="@(Model.Username)" />
            }
            else{
                <input id="Username" name="Username" type="text"  maxlength = "50" style=" width:200px;" value="@(Model.Username)" />
            }
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            <span class="red">*</span>用户密码：
        </td>
        <td>
            <input id="Pwd" name="Pwd" maxlength = "50" style="Width: 200px;" type="password" value="@(Model.Pwd)" />
            密码长度至少8位，必须包含数字、字母、特殊字符。
            @Html.HiddenFor(model => model.OldPwd)
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            <span class="red">*</span>确认密码：
        </td>
        <td>
            <input id="QRPwd" name="QRPwd" style="Width: 200px;" type="password" value="@(Model.Pwd)" />
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            办工电话：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.OfficeTel, new { style = "Width: 200px;", maxlength = "20" })
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            家庭电话：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.HomeTel, new { style = "Width: 200px;", maxlength = "20" })
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            手 机：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.Mobile, new { style = "Width: 200px;", maxlength = "11" })
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            EMAIL：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.OfficeEmail, new { style = "Width: 200px;", maxlength = "50" })
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            公司：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.CompanyName, new { style = "Width: 400px;", maxlength = "100" })
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            部 门：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.Department, new { style = "Width: 400px;", maxlength = "100" })
        </td>
    </tr>
    <tr>
        <td style="text-align: right; width: 100px;">
            岗 位：
        </td>
        <td>
            @Html.TextBoxFor(model => Model.Post, new { style = "Width: 400px;", maxlength = "50" })
        </td>
    </tr>
    <tr style="">
        <td style="width: 100px; text-align: right;">
            状态：
        </td>
        <td>
            @Html.DropDownListFor(model => model.Status, statusList)
        </td>
    </tr>
</table>
